package top.oauth2.common.response;

/**
 * @author xphu
 * @version 1.0
 * @date 2021/8/17 10:27
 */
public enum MessageCode {

    /**
     * 接口返回枚举
     */
    SUCCESS(200, "接口调用成功！"),
    FAIL(500, "接口调用失败！"),
    PARAM_ERROR(401, "参数异常！"),
    NOT_LOGIN_ERROR(402, "未登录！"),
    AUTHOR_ERROR(403, "权限不足!"),
    BLACK_ERROR(405, "禁止访问！")
            ;

    MessageCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code;
    public String message;
}
